// 数据状态的管理(记录/取值/修改/删除)
export default {
    namespaced: true,
    // 存数据
    state: {
        taskId:'',
        price:'',
        num:''
    },
    getters: {
        
    },
    // 修改数据
    mutations: {
        setTaskId(state, value) {
            state.taskId = value;
          },
          setPrice(state, value) {
            state.price = value;
          },
          setNum(state, value) {
            state.num = value;
          },
    },
    // 提交修改数据的方法(异步)
    actions: {
      setTaskIdAsync(content,value){
        content.commit('setTaskId',value)
      },
      setPriceAsync(content,value){
        content.commit('setPrice',value)
      },
      setNumAsync(content,value){
        content.commit('setNum',value)
      },
    },
    modules: {
    }
  }
  